package cn.stylefeng.guns.modular.fruits.mapper;

import cn.stylefeng.guns.modular.fruits.entity.FruitsBasicChannel;
import cn.stylefeng.guns.modular.fruits.model.params.FruitsBasicChannelParam;
import cn.stylefeng.guns.modular.fruits.model.result.FruitsBasicChannelResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 销售渠道 Mapper 接口
 */
public interface FruitsBasicChannelMapper extends BaseMapper<FruitsBasicChannel> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    List<FruitsBasicChannelResult> customList(@Param("paramCondition") FruitsBasicChannelParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") FruitsBasicChannelParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    Page<FruitsBasicChannelResult> customPageList(@Param("page") Page page, @Param("paramCondition") FruitsBasicChannelParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") FruitsBasicChannelParam paramCondition);

	List<FruitsBasicChannelResult> findListBySpec(@Param("paramCondition")FruitsBasicChannelParam param, @Param("operateId")Long operateId);

}
